<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/user/addUser}" method="post">
    <input type="hidden" name="id" th:value="${user.id}">
    姓名：<input type="text" name="userName" th:value="${user.userName}"/><br/>
    密码：<input type="text" name="password" th:value="${user.password}"/><br/>
    地址：<input type="text" name="address"  th:value="${user.address}"/><br/>
    入职日期：<input type="date" name="inputDate"  th:value="${#dates.format(user.inputDate,'yyyy-MM-dd')}"/><br/>
    职位：<input type="radio" name="roleld" value="0" th:checked="${user.roleld=='0'?'checked':''}"/>管理员
    <input type="radio" name="roleld" value="1" th:checked="${user.roleld=='1'?'checked':''}"/>普通用户
    <br/>
    <input type="submit" value="确定"/><br/>
</form>
</body>
</html>